I am trying to determine if an object in DOORS has an applied font to it. There are numerous boolean properties to determine if a string (richtext) is underlined, bold etc however there are none that determine if a font is applied to a given attribute/column. Anyone have a solution to this? |
Re: Determine if an attribute has an applied font |
Re: Determine if an attribute has an applied font
In any case you would need to extract the font table from the richtext, then search for the font and its index. That is the easy part. To check consistently if the entire text is formatted in the font is pretty hard to do. To check whether the font is used in the text is easier, but you still need to do some complex search differentiating the font keyword (like \f1) from other text like (\\f1, \f10, here\f1, etc.) Maybe that helps, regards, Mathias Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |